package com.mxpio.erp.common.workshop.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author : wpp
 * @Datetime : 2023/7/28 10:27
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc :
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_WORKSHOP_MO_ROUTE_FIXTURE")
@Schema(description="订单工艺路线行-工序-工装夹具")
public class ManufactureOrderRouteFixture extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    private String id;

    @Column(name = "ORDER_ROUT_PROC_ID_" )
    @Schema(description  = "订单工艺路线工序明细行ID")//ManufactureOrderRoute 对应id
    private String orderRoutProcId;

    @Column(name = "TEC_ROUT_PROC_ID_" )
    @Schema(description  = "产品工艺路线工序明细行ID")
    private String tecRoutProcId;

    @Column(name = "EQP_CODE_")
    @Schema(description = "设备编码")
    private String eqpCode;
    /**设备名称*/
    @Column(name = "EQP_NAME_")
    @Schema(description = "设备名称")
    private String eqpName;

    @Column(name = "EQP_CLASS_")
    @Schema(description = "设备类型")
    private String eqpClass;

    @Column(name = "EQP_NUM_")
    @Schema(description = "数量")
    private Integer eqpNum;

    @Column(name = "SORT_ORDER_")
    @Schema(description = "排序")
    private Integer sortOrder;
}
